﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using FA.Library.Plugin;
using FA.FlightAttendant.Plugin;
using FA.FlightAttendant.View.Windows;
using FA.FlightAttendant.ViewModel.Windows;

namespace FA.FlightAttendant.View.Commands
{
    public class NewSimulatorCommand : ICommand
    {
        public event EventHandler CanExecuteChanged
        {
            add { CommandManager.RequerySuggested += value; }
            remove { CommandManager.RequerySuggested -= value; }
        }

        public void Execute(object parameter)
        {
            NewSimulatorWindow window = new NewSimulatorWindow();
            window.ShowDialog();
        }

        public bool CanExecute(object parameter)
        {
            return true; // Always true
        }
    }
}